package Collestions_demo;

import java.util.*;

public class AddingGroups {
    public static void main(String[] args) {
        Collection<Integer> collection = new ArrayList<>(Arrays.asList(1,2,3,4,5));
        Integer[] moreInt = {1,2,3,4,5,6};
        collection.addAll(Arrays.asList(moreInt));
        Collections.addAll(collection,11,22,33,44);
        Collections.addAll(collection,moreInt);

        List<Integer> list = Arrays.asList(12,24,25,66);
        for (Integer ls:collection){
            System.out.println(ls);
        }
    }
}
